


class LoginRequest {
  String? account;
  String? password;

  LoginRequest({this.account, this.password}) ;

  LoginRequest.fromJson(Map<String, dynamic> json) {
    account = json['account'];
    password = json['password'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['account'] = account;
    data['password'] = password;

    return data;
  }
}



class LoginResponse{
  String? accessToken;
  int? accessTokenUtcExpires;
  String? refreshToken;
  int? refreshUtcExpires;

  LoginResponse(
      {this.accessToken,
      this.accessTokenUtcExpires,
      this.refreshToken,
      this.refreshUtcExpires}) ;

  LoginResponse.fromJson(Map<String, dynamic> json) {
    accessToken = json['accessToken'];
    accessTokenUtcExpires = json['accessTokenUtcExpires'];
    refreshToken = json['refreshToken'];
    refreshUtcExpires = json['refreshUtcExpires'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['accessToken'] = accessToken;
    data['accessTokenUtcExpires'] = accessTokenUtcExpires;
    data['refreshToken'] = refreshToken;
    data['refreshUtcExpires'] = refreshUtcExpires;

    return data;
  }
}
